package com.vincent.template.commons.constanst;

/**
 * @Author Vincent Wang
 * @Date 2020/10/19 13:59
 */
public enum DepartmentType implements EnumCheck {

    /**
     * 公司
     */
    COMPANY,
    /**
     * 部门
     */
    DEPARTMENT,
    /**
     * 门店
     */
    STORE;

    DepartmentType() {
    }

    @Override
    public boolean exists(String value) {
        for (DepartmentType type : DepartmentType.values()) {
            if (type.name().equals(value)) {
                return true;
            }
        }
        return false;
    }
}
